import request from './request.js';
let service = request.service;
let formatterUrl = request.formatterUrl;
export default {
  /**原料库列表*/
  rawMaterialsBankList(data) {
    return service({
      url: `/adscm/operation/cg/ylMaterial/select`,
      method: 'post',
      data
    })
  },
  /**新增-insert 修改-update 原料库*/
  insertUpdateRawMaterialsBank(type, data) {
    return service({
      url: `/adscm/operation/cg/ylMaterial/${type}`,
      method: 'post',
      data
    })
  },
  /***出库记录列表 */
  outgoingRecordList(id) {
    return service({
      url: `/adscm/operation/cg/ylMaterialDetail/selectByTid/${id}`,
      method: 'post',
    })
  },
  /**删除出库记录*/ 
  deleteOutgoingRecord(id) {
    return service({
      url: `/adscm/operation/cg/ylMaterialDetail/delete/${id}`,
      method: 'get',
    })
  },
  /**新增出库记录 */
  insertOutgoingRecord(data) {
    return service({
      url: `/adscm/operation/cg/ylMaterialDetail/insert`,
      method: 'post',
      data
    })
  }
}